package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the tasmission database table.
 * 
 */
@Entity
@NamedQuery(name="Tasmission.findAll", query="SELECT t FROM Tasmission t")
public class Tasmission implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int tasmissionid;

	@Temporal(TemporalType.TIMESTAMP)
	private Date tasmissiondate;

	private String tasmissionpwd;

	private String tasmissionremark;

	//bi-directional many-to-one association to Activity
	@ManyToOne
	@JoinColumn(name="activity_id")
	private Activity activity;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staff_id")
	private Staff staff;

	//bi-directional many-to-many association to Tarrange
	@ManyToMany
	@JoinTable(
		name="zhen_pai"
		, joinColumns={
			@JoinColumn(name="tasmissionid")
			}
		, inverseJoinColumns={
			@JoinColumn(name="tarrangeid")
			}
		)
	private List<Tarrange> tarranges;

	//bi-directional many-to-one association to Texaminee
	@ManyToOne
	@JoinColumn(name="tmineeid")
	private Texaminee texaminee;

	//bi-directional many-to-one association to Tscene
	@ManyToOne
	@JoinColumn(name="tsceneid")
	private Tscene tscene;

	public Tasmission() {
	}

	public int getTasmissionid() {
		return this.tasmissionid;
	}

	public void setTasmissionid(int tasmissionid) {
		this.tasmissionid = tasmissionid;
	}

	public Date getTasmissiondate() {
		return this.tasmissiondate;
	}

	public void setTasmissiondate(Date tasmissiondate) {
		this.tasmissiondate = tasmissiondate;
	}

	public String getTasmissionpwd() {
		return this.tasmissionpwd;
	}

	public void setTasmissionpwd(String tasmissionpwd) {
		this.tasmissionpwd = tasmissionpwd;
	}

	public String getTasmissionremark() {
		return this.tasmissionremark;
	}

	public void setTasmissionremark(String tasmissionremark) {
		this.tasmissionremark = tasmissionremark;
	}

	public Activity getActivity() {
		return this.activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public List<Tarrange> getTarranges() {
		return this.tarranges;
	}

	public void setTarranges(List<Tarrange> tarranges) {
		this.tarranges = tarranges;
	}

	public Texaminee getTexaminee() {
		return this.texaminee;
	}

	public void setTexaminee(Texaminee texaminee) {
		this.texaminee = texaminee;
	}

	public Tscene getTscene() {
		return this.tscene;
	}

	public void setTscene(Tscene tscene) {
		this.tscene = tscene;
	}

}